package la.iok.hzsvn.lewin.movie.cloud.model;

import java.util.Objects;

/**
 * 设备参数
 */
public class DeviceParam extends SimpleDeviceParam {
    /**
     * 设备名称
     */
    private String name;
    /**
     * 二维码标识，店铺或者房间二维码
     */
    private String uuid;
    /**
     * 所属组织
     */
    private Long orgUnitId;
    /**
     * 房间id
     */
    private Long roomId;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public Long getOrgUnitId() {
        return orgUnitId;
    }

    public void setOrgUnitId(Long orgUnitId) {
        this.orgUnitId = orgUnitId;
    }

    public Long getRoomId() {
        return roomId;
    }

    public void setRoomId(Long roomId) {
        this.roomId = roomId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        DeviceParam that = (DeviceParam) o;
        return Objects.equals(name, that.name) && Objects.equals(getCode(), that.getCode()) && Objects.equals(uuid, that.uuid) && Objects.equals(orgUnitId, that.orgUnitId) && Objects.equals(roomId, that.roomId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(name, getCode(), uuid, orgUnitId, roomId);
    }
}
